﻿using System;
using System.Collections.Generic;
using Orid.Management.Statistics.Tools.Decomposition.Config;

namespace Orid.Management.Statistics.Tools.Decomposition.Data
{
    class RoleLevelOnline:RoleLevel
    {
        string connectString, tableName;
        
        public RoleLevelOnline()
        {
            connectString =Setting.SettingInstance.DBAddress_Online;
            //[RoleJobLevels]
            tableName = " [FutureManagement_Manage].[FutureMa].[RoleJobLevels] ";
        }

        public override List< Model.ModelRoleLevel> GetRoleLevel()
        { 
            try
            {

                return GetRoleLevel( connectString, tableName);

            }
            catch (System.Data.SqlClient.SqlException ex)
            {
                throw (new Exception(ex.Message));
            }
        
        }
    }
}
